﻿using CompanyManageSystem.Model;
using CompanyManageSystem.Model.View;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompanyManageSystem.IService
{
    interface IBookService
    {
        /// <summary>
        /// 获取所有物料分类
        /// </summary>
        /// <returns></returns>
        List<BaseElement> GetAllMaterialCategory();

        /// <summary>
        /// 根据物料分类ID获取供应商
        /// </summary>
        /// <returns></returns>
        List<Supplier> GetAllSupplierByCategoryID(Guid categoryId);

        /// <summary>
        /// 根据物料分类ID和供应商ID获取视图明细
        /// </summary>
        /// <returns></returns>
        List<MaterialCategorySupplierView> GetDetailBySupplierID(Guid categoryId, Guid supplierId);

        /// <summary>
        /// 根据日期，分类ID和供应商ID获取视图明细
        /// </summary>
        /// <returns></returns>
        List<MaterialCategorySupplierView> GetDetailByFactor(DateTime date1,DateTime date2,Guid categoryId,Guid supplierId);
    }
}
